<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>函数</title>
</head>
	<script type="text/javascript">
	// function summer (y) {
	// 			sum=0
	// 			for (var i=1; i <=y; i++) {
	// 				sum+=y;
	// 			};
	// 			alert(sum);
	// }

	// summer(10000);

	// summer(2768);

	// summer(45112);
				function summer1 (num1=233,num2=789) {
						num3=num1+num2;
							// alert(num3);
							return num3;
				}
				x=938;
				y=384;
				res1=summer1(x,y);
				alert(res1);
	</script>
<body>
	
</body>
</html>